package com.shd.edanpei.bean;

import com.shd.edanpei.enums.RoleEnum;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by mc on 2018/10/25.
 * yang-wen-wen
 */

public class UserModel {

    /**
     * businessLicense :
     * createUserId : 0
     * wechatOpenId :
     * companyName : 河狸家
     * pageSize : 0
     * employeeNo :
     * branch :
     * deviceId : 77CCCB53-1052-4ADB-A067-9C339105ABFA
     * points : 0
     * password : 25f9e794323b453885f5181f1b624d0b
     * post : 咖喱鸡
     * publishNum : 0
     * id : 57
     * state : 1
     * area : dhhhd
     * deviceType : iOS
     * agentArea :
     * avatarUrl : http://yingkd-image.oss-cn-hangzhou.aliyuncs.com/yingkd-image/1_null/8bf07761-220a-4839-aa4c-1fae96b99288.png
     * bankCardNo :
     * inviteId : 0
     * nickName : 用户5009
     * isPerfectInfo : true
     * accessToken :
     * companySize :
     * spouseMobile :
     * orderHouseNum : 0
     * name :
     * birthday : 2015-01-01
     * income :
     * isReal : true
     * isSecurity : false
     * idCardNo :
     * industry :
     * idNumber : 412725199811127879
     * roleType : 4
     * inviteCount : 0
     * integral : 0
     * orderCarNum : 0
     * accountNo :
     * isMarrage : false
     * receiveNum : 0
     * address :
     * stateDesc : 正常
     * sex : 0
     * mobile : 18557535009
     * orderCount : 0
     * updateTime : 1540432656000
     * receiptCode : -1
     * pageNum : 0
     * secondInviteId : 0
     * lastLoginTime : 1540432663000
     * realName : 周刘通
     * createTime : 1537587550000
     * companyAddress : 北京市 县 延庆县
     * detailAddress : 破坏您
     * spouseName :
     * idCardPic : ["http://yingkd-image.oss-cn-hangzhou.aliyuncs.com/yingkd-image/57_identitiy1/b341bf0e-ec2f-42cc-bff7-032e3c1da23d.png","http://yingkd-image.oss-cn-hangzhou.aliyuncs.com/yingkd-image/57_identitiy2/4c113d51-1a55-4dbf-9f40-0bc1c58bad0f.png"]
     * age : 0
     */

    private ArrayList<String> businessLicense;
    private int createUserId;
    private String wechatOpenId;
    private String companyName;
    private int pageSize;
    private String employeeNo;
    private String branch;
    private String deviceId;
    private int points;
    private String password;
    private String post;
    private int publishNum;
    private int id;
    private int state;
    private String area;
    private String deviceType;
    private String agentArea;
    private String avatarUrl;
    private String bankCardNo;
    private int inviteId;
    private String nickName;
    private boolean isPerfectInfo;
    private String accessToken;
    private String companySize;
    private String spouseMobile;
    private int orderHouseNum;
    private String name;
    private String birthday;
    private String income;
    private boolean isReal;
    private boolean isSecurity;
    private String idCardNo;
    private String industry;
    private String idNumber;
    private int roleType;
    private int inviteCount;
    private int integral;
    private int orderCarNum;
    private String accountNo;
    private boolean isMarrage;
    private int receiveNum;
    private String address;
    private String stateDesc;
    private int sex;
    private String mobile;
    private int orderCount;
    private long updateTime;
    private String receiptCode;
    private int pageNum;
    private int secondInviteId;
    private String realName;
    private long createTime;
    private String companyAddress;
    private String detailAddress;
    private String spouseName;
    private int age;
    private List<String> idCardPic;
    private String companyServerPhone;//客服电话

    public ArrayList<String> getBusinessLicense() {
        return businessLicense;
    }

    public int getCreateUserId() {
        return createUserId;
    }


    public String getWechatOpenId() {
        return wechatOpenId;
    }


    public String getCompanyName() {
        return companyName;
    }


    public int getPageSize() {
        return pageSize;
    }


    public String getEmployeeNo() {
        return employeeNo;
    }


    public String getBranch() {
        return branch;
    }


    public String getDeviceId() {
        return deviceId;
    }

    public int getPoints() {
        return points;
    }


    public String getPassword() {
        return password;
    }


    public String getPost() {
        return post;
    }


    public int getPublishNum() {
        return publishNum;
    }


    public int getId() {
        return id;
    }


    public int getState() {
        return state;
    }


    public String getArea() {
        return area;
    }


    public String getDeviceType() {
        return deviceType;
    }


    public String getAgentArea() {
        return agentArea;
    }


    public String getAvatarUrl() {
        return avatarUrl;
    }


    public String getBankCardNo() {
        return bankCardNo;
    }


    public int getInviteId() {
        return inviteId;
    }


    public String getNickName() {
        return nickName;
    }


    public boolean isIsPerfectInfo() {
        return isPerfectInfo;
    }


    public String getAccessToken() {
        return accessToken;
    }


    public String getCompanySize() {
        return companySize;
    }


    public String getSpouseMobile() {
        return spouseMobile;
    }


    public int getOrderHouseNum() {
        return orderHouseNum;
    }


    public String getName() {
        return name;
    }


    public String getBirthday() {
        return birthday;
    }


    public String getIncome() {
        return income;
    }


    public boolean isIsReal() {
        return isReal;
    }


    public boolean isIsSecurity() {
        return isSecurity;
    }


    public String getIdCardNo() {
        return idCardNo;
    }


    public String getIndustry() {
        return industry;
    }


    public String getIdNumber() {
        return idNumber;
    }


    public int getRoleType() {
        return roleType;
    }


    public int getInviteCount() {
        return inviteCount;
    }


    public int getIntegral() {
        return integral;
    }

    public int getOrderCarNum() {
        return orderCarNum;
    }


    public String getAccountNo() {
        return accountNo;
    }


    public boolean isIsMarrage() {
        return isMarrage;
    }

    public int getReceiveNum() {
        return receiveNum;
    }

    public String getAddress() {
        return address;
    }

    public String getStateDesc() {
        return stateDesc;
    }

    public int getSex() {
        return sex;
    }

    public String getMobile() {
        return mobile;
    }

    public int getOrderCount() {
        return orderCount;
    }

    public long getUpdateTime() {
        return updateTime;
    }

    public String getReceiptCode() {
        return receiptCode;
    }

    public int getPageNum() {
        return pageNum;
    }

    public int getSecondInviteId() {
        return secondInviteId;
    }

    public String getRealName() {
        return realName;
    }

    public long getCreateTime() {
        return createTime;
    }

    public String getCompanyAddress() {
        return companyAddress;
    }

    public String getDetailAddress() {
        return detailAddress;
    }


    public String getSpouseName() {
        return spouseName;
    }

    public int getAge() {
        return age;
    }


    public List<String> getIdCardPic() {
        return idCardPic;
    }

    public void setCompanyServerPhone(String companyServerPhone) {
        this.companyServerPhone = companyServerPhone;
    }

    public String getCompanyServerPhone() {
        return companyServerPhone;
    }

    /**
     * 用户企业信息
     */
    public List<CompanyInfoModel> getCompanyInfo() {
        List<CompanyInfoModel> list = new ArrayList<>();
        if (roleType == RoleEnum.bank.getId()) {
            list.add(new CompanyInfoModel("银行名称", getCompanyName()));
            list.add(new CompanyInfoModel("支行", getBranch()));
            list.add(new CompanyInfoModel("银行地址", getCompanyAddress()));
            list.add(new CompanyInfoModel("详细地址", getDetailAddress()));
        } else if (roleType == RoleEnum.other.getId()
                || roleType == RoleEnum.boss.getId()) {
            list.add(new CompanyInfoModel("公司名称", getCompanyName()));
            list.add(new CompanyInfoModel("公司营业执照", "查看图片", true, getBusinessLicense()));
            list.add(new CompanyInfoModel("公司规模", getCompanySize()));
            list.add(new CompanyInfoModel("办公区域", getCompanyAddress()));
            list.add(new CompanyInfoModel("详细地址", getDetailAddress()));
        }
        return list;
    }
}
